package com.ruoyi.flowable.common.expand.el;

import com.ruoyi.system.service.ISysDeptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 扩展表达式
 *
 * @author Tony
 * @date 2023-03-04 12:10
 */
@Component
@Slf4j
public class FlowEl implements BaseEl {

    @Resource
    private ISysDeptService sysDeptService;

    /**
     * 查询部门负责人
     * @return 部门负责人ID
     */
    public String findDeptLeader(String userId){
        //
//        sysDeptService.selectDeptLeaderById();
        return "1";
    }
}

